package br.com.wagnerfull.precoimovel.cadastro;

import java.util.HashMap;
import java.util.Map;

import android.content.ContentValues;
import br.com.wagnerfull.precoimovel.dao.EntidadeMobileEntity;

public class Taxa extends EntidadeMobileEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -196552227921511867L;
	private Integer id;
	private String descricao;
	private String discriminacao;
	private Boolean flagAtivo;
	private Boolean flagPercentual;
	private Boolean flagImovelNovo;
	private Boolean flagImovelUsado;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public Boolean getFlagAtivo() {
		return flagAtivo;
	}

	public void setFlagAtivo(Boolean flagAtivo) {
		this.flagAtivo = flagAtivo;
	}

	public Boolean getFlagPercentual() {
		return flagPercentual;
	}

	public void setFlagPercentual(Boolean flagPercentual) {
		this.flagPercentual = flagPercentual;
	}

	public Boolean getFlagImovelNovo() {
		return flagImovelNovo;
	}

	public void setFlagImovelNovo(Boolean flagImovelNovo) {
		this.flagImovelNovo = flagImovelNovo;
	}

	public Boolean getFlagImovelUsado() {
		return flagImovelUsado;
	}

	public void setFlagImovelUsado(Boolean flagImovelUsado) {
		this.flagImovelUsado = flagImovelUsado;
	}

	public String getDiscriminacao() {
		return discriminacao;
	}

	public void setDiscriminacao(String discriminacao) {
		this.discriminacao = discriminacao;
	}

	public Taxa() {
		super();
	}

	public Taxa(Integer id, String descricao, Boolean flagAtivo,
			Boolean flagPercentual, Boolean flagImovelNovo,
			Boolean flagImovelUsado) {
		this.id = id;
		this.descricao = descricao;
		this.flagAtivo = flagAtivo;
		this.flagPercentual = flagPercentual;
		this.flagImovelNovo = flagImovelNovo;
		this.flagImovelUsado = flagImovelUsado;
	}

	public Taxa(Integer id, String descricao, String discriminacao,
			Boolean flagAtivo, Boolean flagPercentual, Boolean flagImovelNovo,
			Boolean flagImovelUsado) {
		this.id = id;
		this.descricao = descricao;
		this.discriminacao = discriminacao;
		this.flagAtivo = flagAtivo;
		this.flagPercentual = flagPercentual;
		this.flagImovelNovo = flagImovelNovo;
		this.flagImovelUsado = flagImovelUsado;
	}

	@Override
	public Map<String, String> getMapeamento() {
		Map<String, String> retorno = new HashMap<String, String>();
		retorno.put("id", "id");
		retorno.put("descricao", "descricao");
		retorno.put("discriminacao", "discriminacao");
		retorno.put("flagPercentual", "flag_percentual");
		retorno.put("flagImovelNovo", "flag_imovel_novo");
		retorno.put("flagImovelUsado", "flag_imovel_usado");
		return retorno;
	}

	@Override
	public ContentValues getContentValues() {
		ContentValues contentValues = new ContentValues();
		contentValues.put("id", this.id);
		contentValues.put("descricao", this.descricao);
		contentValues.put("discriminacao", this.discriminacao);
		contentValues.put("flag_percentual", this.flagPercentual);
		contentValues.put("flag_imovel_novo", this.flagImovelNovo);
		contentValues.put("flag_imovel_usado", this.flagImovelUsado);
		return contentValues;
	}

	@Override
	public String toString() {
		return "taxa";
	}
}
